

function ProcessSubMenu(divName)
{
	var html;
	var scriptActionMouse;
	var divMenu;
	var xPos;
	var src;
	if (document.popup != null)
	{
		document.popup.hide();
		document.popup = null;
	}
	divMenu = document.all[divName];
	if (typeof(divMenu) != \'undefined\')
	{
		html = \'<html>\';
		html += \'<head>\n\';	
		html += \'<LINK href="\' + document.xmlEditor.xmlEditorPath + \'StyleSheets/XmlEditorMenu.css" type="text/css" rel="stylesheet">\';
		html += \'<scri\' + \'pt language="javascript">\n\';
		
		html += scriptActionMouse; 
		
		html += \'</scri\' + \'pt>\n\';
		html += \'</head>\';
		html += \'<body SCROLL="no">\';
		html += divMenu.innerHTML;
		html += \'</body>\';
		html += \'</html>\';	
		src = window.event.srcElement;		
		if (src.tagName != \'TD\')
		{
			src = src.parentElement;
		}
		if (src.className == \'subItem\')
		{
			src.className = \'subItemOver\';
		}
		else
		{
			src.className = \'itemOver\';
		}		
		if (document.overItem != null && document.overItem != src)
		{
			if (document.overItem.className == \'subItemOver\')
			{
				document.overItem.className = \'subItem\';
			}
			else
			{
				document.overItem.className = \'item\';
			}
		}
		document.overItem = src;
		xPos = parseInt(document.xPopup) + parseInt(document.popupWidth)-4;
		yPos = parseInt(document.yPopup) + parseInt(src.offsetTop) + 2;
		window.CMPopup = window.createPopup();
		document.popup = window.CMPopup;
		document.popup.document.write(html);
		document.popup.show(xPos, yPos, 1, 1);
		width = document.popup.document.body.firstChild.clientWidth+2;
		height = document.popup.document.body.firstChild.clientHeight+2;
		document.popup.hide();
		document.popup.document.popup = null;
		document.popup.document.xmlEditor = document.xmlEditor;
		document.popup.show(xPos, yPos, width, height);
	}
}
